import { UploadFile } from "@/api/interface/index";
import http from "@/api";

//文件上传
export const uploadFile = (params: UploadFile.ReqUploadFileParams, _object = { timeout: 3600000 }) => {
  return http.post(`/file/upload`, params, _object);
};

//文件下载
export const downloadFile = (fileId: string) => {
  return http.get(`/file/download/${fileId}`);
};
